<?php
class FriendException extends BizException
{
    const USER_ALREADY_ADDED = 0;
    const USER_ALREADY_ACCEPTED = 1;
    
    public function __construct($key)
    {
        $msgs = array();
	    $msgs[self::USER_ALREADY_ADDED] = gettext('user_already_added');
	    $msgs[self::USER_ALREADY_ACCEPTED] = gettext('user_already_accepted');

        parent::__construct($key, $msgs);
    }
} 
